﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Weixin.MP.UI
{
    /// <summary>
    /// 用于对微信菜单操作
    /// </summary>
    public class WeixinMenu
    {
        /// <summary>
        /// ID
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 父ID
        /// </summary>
        public int parentId { get; set; }
        /// <summary>
        /// 菜单等级
        /// </summary>
        public int level { get; set; }
        /// <summary>
        /// 菜单的响应动作类型，目前有click、view两种类型
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 菜单KEY值，用于消息接口推送，不超过128字节(click类型必须)
        /// </summary>
        public string key { get; set; }
        /// <summary>
        /// 菜单标题，不超过16个字节，子菜单不超过40个字节
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 网页链接，用户点击菜单可打开链接，不超过256字节(view类型必须)
        /// </summary>
        public string url { get; set; }
    }
}